<!--
 * @Author: deng da chao
 * @Description: 我的商品详情
-->
<template>
	<view class="buyDetails">
		<!-- 商品展示 -->
		<goods-exhibits :details="details"></goods-exhibits>
	</view>
</template>

<script>
	import goodsExhibits from "./components/goods_exhibits.vue";
	export default {
		name: "buyDetails",
		components: {
			goodsExhibits,
		},
		data() {
			return {
				details: {}, //详情
				sysMemberNftid: null, //商品记录id
			}
		},
		onLoad(options) {
			// this.sysMemberNftid = options.id;
			this.details = {
				detailMainImg: 'https://dreamofcity.oss-cn-chengdu.aliyuncs.com/pre/backstage/img/1722587867918.jpg'
			};
		},
		onShow() {
			// if (this.sysMemberNftid) this.getNftSell();
		},
		methods: {
			// 获取详情数据
			getNftSell() {
				let data = {
					id: this.sysMemberNftid,
				};

				this.$api.order
					.getWarehouseItemDetail(data)
					.then((e) => {
						this.details = e.data;
					})
			},

		}
	}
</script>

<style scoped lang="scss">
</style>